package cn.itcast.bos.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.Standard;

public interface StandardRespository extends JpaRepository<Standard, Integer> {
    
	
	public List<Standard> findByname(String name);
	
	@Query(value="from Standard where name=?",nativeQuery=false)
	//写false就是plsql
	public List<Standard> queryname(String name);
	@Query(value="update Standard set minLength=?2 where id=?1")
	public void update(Integer id,Integer minlength);
		
	
}
